/**
 * 
 */
package de.cbf.cam.dsa.battle.ui.perspectives;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import de.cbf.cam.dsa.battle.views.AttackerView;
import de.cbf.cam.dsa.battle.views.IniView;

/**
 * @author Nebelritter
 *
 */
public class BattlePerspective implements IPerspectiveFactory {
	public static final String ID ="de.cbf.cam.dsa.battle.ui.perspectives.BattlePerspective";
	
	@Override
	public void createInitialLayout(IPageLayout layout) {
		String editorArea=layout.getEditorArea();
		layout.setEditorAreaVisible(false);		
		
		layout.addStandaloneView(IniView.ID,false, IPageLayout.LEFT,0.65f,editorArea);
		layout.addStandaloneView(AttackerView.ID,false,IPageLayout.TOP,0.2f,editorArea);		
			
		layout.getViewLayout(IniView.ID).setCloseable(false);
		layout.getViewLayout(IniView.ID).setMoveable(false);
		
	}
}
